package cate.game.activity.mtowerchallenge.po;

import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.List;

public class MTowerLevel {
    @NoteField(value = "层数ID")
    public int level;

    @NoteField(value = "是否通关")
    public boolean pass;

    @NoteField(value = "星级挑战", detail = "<星级挑战ID>")
    public List<Integer> challenge;

    @NoteField(value = "已扫荡次数")
    public int mopTime;


    public void initLevel() {
        if (challenge == null) {
            challenge = new ArrayList<>();
        }
    }

    public MTowerLevel(int level) {
        this.level = level;
    }


    public void onDaySpan() {
        mopTime = 0;
    }
}
